package cn.data.test;


import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;

import org.apache.http.HttpEntity;
import org.apache.http.util.EntityUtils;

import cn.datawin.spider.httputil.HttpClientService;
import cn.datawin.spider.httputil.HttpRequest;
import cn.datawin.spider.httputil.HttpResponse;
import cn.datawin.spider.httputil.HttpRequest.Method;
import cn.datawin.spider.httputil.HttpService;
import cn.datawin.task.util.HttpUtil;

public class Baidu {
	
	public static void main(String[] args) throws Exception {
		HttpRequest request = new HttpRequest("http://baike.baidu.com/view/3927.htm?fr=aladdin", Method.post);
		HttpService service =  new HttpClientService();
		HttpResponse res = service.execute(request);
		System.out.println(res.getHeaders()); 
		
		
	}

}
